/**
 * 
 */
package myfamily.model;

/**
 * @author Vineet
 *
 */
public class Name {
	private String firstName;
	private String MiddleName;
	private String LastName;
	
	
	
	
	/**
	 * 
	 */
	public Name() {
	}

	/**
	 * @return the firstName
	 */
	public String getFirstName() {
		return firstName;
	}
	
	/**
	 * @param firstName the firstName to set
	 */
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	/**
	 * @return the middleName
	 */
	public String getMiddleName() {
		return MiddleName;
	}

	/**
	 * @param middleName the middleName to set
	 */
	public void setMiddleName(String middleName) {
		MiddleName = middleName;
	}

	/**
	 * @return the lastName
	 */
	public String getLastName() {
		return LastName;
	}

	/**
	 * @param lastName the lastName to set
	 */
	public void setLastName(String lastName) {
		LastName = lastName;
	}

	
	public Name(String fName, String mName, String lName)
	{
		this.firstName = fName;
		this.MiddleName = mName;
		this.LastName = lName;
	}

	@Override
	public String toString() {
		return firstName + " " + MiddleName + " " + LastName;
	}

	public String identity()
	{
		return (this.firstName + this.LastName);
	}
	
	
}
